atox

 

The 'atox' function changes a hexadecimal string value into an integer value.

 

int atox(string buf);

 

Parameters

string buf : Hexadecimal string that you want to change.

 

Return Value

Integer

 

Example1

value = @atoi("1234");

Description : The hexadecimal string value('1234') changes into the integer value('4660' = '0x1234'). And the integer value('4660') is stored in the variable named 'value'.

 

Example2

$AITAG = @atox($string_tag);

Description :  A hexadecimal string value stored in 'string_tag'  is changed into an integer value. And the integer value is stored in the AI Tag named 'AITAG'.

 

Example3

@SetTagValue("string_tag","AB12");

// The hexadecimal string value('AB12') is stored in the String Tag named 'string_tag'. 

$AITAG = @atox($string_tag);

// The hexadecimal string value('AB12') stored 'string_tag'  is changed into an integer value('43794'). And the integer value('43794') is stored in the AI Tag named 'AITAG'

$AOTAG=@atox($string_tag);

// The hexadecimal string value('AB12') stored 'string_tag'  is changed into an integer value('43794'). And the integer value('43794') is output to the AO Tag named 'AOTAG'